import service from '..'
export function getBanner(){
    return service({
        methods:'GET',
        url:'banner?type=2'
    })
}
export function getMusiclist(){
    return service({
        methods:'GET',
        url:'/personalized'
    })
}
export function getSearchMusic(data){
    return service({
        method:"GET",
        url:`/search?keywords=${data}`
    })

}
// key生成接口
export function qrCodeLoginKey(data)
{return service({
    method:'GET',
    url:`/login/qr/key?timestamp=${data}`})
}
// // 二维码生成接口
export function qrCodeLoginImg(data)
{return service({
    method:'GET',
    url:`/login/qr/create?qrimg=true&key=${data}`})
}
// 检测状态接口
export function qrCodeLoginCheck(data)
{
    console.log(data)
    return service({
    method:'GET',
    url:`/login/qr/check?key=${data}&timestamp=${new Date().getTime()}`})
}
export function getLoginStatus()
{return service({
    method:'GET',
    url:`/login/status`})
}

export function getUserDetail(data){
    return service({
        methods:'GET',
        url:`/user/detail?uid=${data}`

    })
}



